from django.db import models

# Create your models here.

class User(models.Model):
    phone = models.CharField(max_length=50)
    password = models.CharField(max_length=50)
class Order(models.Model):
    order_name = models.CharField(max_length=50)
    order_price = models.CharField(max_length=50)
    order_img = models.ImageField(upload_to='img')
    user = models.ForeignKey(User,on_delete=models.CASCADE)
class Estimate(models.Model):
    user = models.ForeignKey(User,on_delete=models.CASCADE)
    order = models.ForeignKey(Order,on_delete=models.CASCADE)
    estimate_img = models.ImageField(upload_to='img')
    estimate_content = models.CharField(max_length=100)





